<%@ Page Language="C#" MasterPageFile="~/NiSis.Master" AutoEventWireup="true" Codebehind="Verifica.aspx.cs"
    Inherits="NiSis.Verifica" Title="Untitled Page" %>

<%@ Register Src="UserControls/RifiutoInputBox.ascx" TagName="RifiutoInputBox" TagPrefix="uc3" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="UserControls/ConfermaUtenze.ascx" TagName="ConfermaUtenze" TagPrefix="uc2" %>
<%@ Register Src="UserControls/MeseAnnoPicker.ascx" TagName="MeseAnnoPicker" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
   
        <asp:Label ID="lblTitle" Text="Fase di verifica" BackColor="#666666" BorderColor="#E6E2D8" Font-Bold="True" Font-Size="0.9em" ForeColor="White" Width="715px" runat="server" />
        <p></p>    
    <uc1:MeseAnnoPicker ID="MeseAnnoPicker1" runat="server" />
    <asp:ImageButton ID="cmdISelectShipper" runat="server" ToolTip="Agiunge trader alla catena"
        Width="22px" Height="19px" OnClick="cmdSelectShipper_Click" ImageUrl="~/Img/refresh.png" />
    <br />
    <br />
    <asp:GridView ID="GrdVerifica" runat="server" AutoGenerateColumns="False" OnRowCommand="GrdVerifica_RowCommand"
        CellPadding="4" OnRowDataBound="GrdVerifica_DataBound" ForeColor="#333333" GridLines="None">
        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <RowStyle BackColor="#E3EAEB" />
        <Columns>
            <asp:TemplateField HeaderText="Utenze">
                <ItemTemplate>
                    <asp:ImageButton ID="cmdOpenSubgrid" ToolTip="Apri/chiudi elenco utenze" Width="15px"
                        Height="15px" ImageUrl="~/Img/Add.png" runat="server" />
                    <uc2:ConfermaUtenze ID="ConfermaUtenze1"  Visible="false" OnNoRowsInUtenze="ConfermaUtenze1_NoRowsInUtenze" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="CdPool" HeaderText="Pool"  />
            <asp:BoundField DataField="DsSocieta" HeaderText="Venditore Precedente" HtmlEncode="False" />
            <asp:BoundField DataField="LTrader" HeaderText="Venditore Ultimo" NullDisplayText="-" HtmlEncode="False" />
            <asp:BoundField DataField="DsShipper" HeaderText="Shipper" HtmlEncode="False" />
            <asp:TemplateField HeaderText="Approva">
                <ItemTemplate>
                    <asp:ImageButton ID="btnAproveAll" ToolTip="Approva" ImageUrl="~/Img/Ok.png"
                        Width="20px" Height="20px" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Rifiuta">
                <ItemTemplate>
                    <asp:ImageButton ID="btnRejectAll" ToolTip="Rifiuta" ImageUrl="~/Img/Trash.png"
                        Width="20px" Height="20px" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Modifica">
                <ItemTemplate>
                    <asp:ImageButton ID="btnEdit" ToolTip="Modifica catena" ImageUrl="~/Img/Write Document.png"
                        Width="20px" Height="20px" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <EditRowStyle BackColor="#7C6F57" />
        <EmptyDataTemplate>
            Non ci sono i dati
        </EmptyDataTemplate>
    </asp:GridView>
    <asp:HiddenField id="hdLastIdBatch" runat="server" />
    <asp:HiddenField ID="hdLastReject" runat="server" />
    <asp:HiddenField ID="hdRejectAll" runat="server" />
    <uc3:RifiutoInputBox ID="RifiutoInputBox1" OnNewRifiutoSent="RifiutoInputBox1_OnNewRifiutoSent" runat="server" />
    <asp:HiddenField ID="hdIdTp" runat="server" />
    <asp:HiddenField ID="hdLastCdPool" runat="server" />
    <asp:HiddenField ID="hdLastCdMese" runat="server" />
</asp:Content>
